//
//  Array+Extension.swift
//  GermanyMedical
//
//  Created by 刘培壮 on 2016/10/13.
//  Copyright © 2016年 上海实奥信息科技有限公司. All rights reserved.
//

import Foundation
extension Array {
    

    func objectToJsonString() -> String {
        let data = try? JSONSerialization.data(withJSONObject: self as Any, options: .prettyPrinted)
        guard let datas = data else { return "" }
        guard let jsonString = String(data: datas, encoding: String.Encoding.utf8) else {
            return ""
        }
        return jsonString
    }
}
